//
//  MainColorAppViewController.h
//  QKZhi-iOS
//
//  Created by CL on 2017/1/4.
//  Copyright © 2017年 cn.com.qktz. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIViewController+GNUtil.h"
#import "UIColor+GNUtil.h"


@interface MainColorAppViewController : UIViewController 

@property (nonatomic, copy) void(^backButtonPress)(void);
@property (nonatomic, strong) UINavigationController *loginNav;
@property (nonatomic, strong) UIViewController *LoginController;
-(void)ApptitileView:(NSString *)titileName;

//左边文字、图片
-(UIButton *)leftBarButtonItem:(NSString *)normalImage btnTitile:(NSString *)Titile font:(CGFloat)sizeFont;
//右边图片、文字
-(UIButton *)rightBarButtonItem:(NSString *)normalImage btnTitile:(NSString *)Titile font:(CGFloat)sizeFont;

/** 导航下面灰色的线条 */
@property (nonatomic, strong) UIImageView *navBarHairlineImageView;

/**
 * 左边导航按钮
 * @param title title和img和传nil，frame必须传
 */
-(void)setNavLeftItemWithTitle:(NSString *)title img:(NSString *)img frame:(CGRect)frame;

//配置导航颜色和title颜色
- (void) setNavConfigStartColor:(NSString *)startColorStr endColor:(NSString *)endColorStr;

/**
 * 左边导航消息中心
 */
-(void)setNavMessageLeftItemIsLeft:(BOOL)isLeft;


/**
 * 未读消息统计显示导航红点，需要的控制器调用
 */
- (void)refreshUnreadCountIsLeft:(BOOL)isLeft;

-(void)leftItemClicked;


@end
